<?php

declare(strict_types=1);

namespace App\Entity;

use App\Models\CleanerRest as CleanerRestModel;

class CleanerRestEntity extends ABaseEntity
{
    public function __construct(CleanerRestModel $model = null)
    {
        if ($model === null) {
            $model = new CleanerRestModel();
        }
        $this->model = $model;
    }

    //id
    public function getId(): int
    {
        return $this->model->id;
    }

    public function setId(int $id): void
    {
        $this->model->id = $id;
    }

    //create_time
    public function getCreateTime(): string
    {
        return $this->model->create_time;
    }

    public function setCreateTime(string $createTime): void
    {
        $this->model->create_time = $createTime;
    }

    //cleaner_id
    public function getCleanerId(): int
    {
        return $this->model->cleaner_id;
    }

    public function setCleanerId(int $cleanerId): void
    {
        $this->model->cleaner_id = $cleanerId;
    }

    //start_date
    public function getStartDate(): string
    {
        return $this->model->start_date;
    }

    public function setStartDate(string $startDate): void
    {
        $this->model->start_date = $startDate;
    }

    //end_date
    public function getEndDate(): string
    {
        return $this->model->end_date;
    }

    public function setEndDate(string $endDate): void
    {
        $this->model->end_date = $endDate;
    }

    //start_half
    public function getStartHalf(): int
    {
        return $this->model->start_half;
    }

    public function setStartHalf(int $startHalf): void
    {
        $this->model->start_half = $startHalf;
    }

    //end_half
    public function getEndHalf(): int
    {
        return $this->model->end_half;
    }

    public function setEndHalf(int $endHalf): void
    {
        $this->model->end_half = $endHalf;
    }

    //type_id
    public function getTypeId(): int
    {
        return $this->model->type_id;
    }

    public function setTypeId(int $typeId): void
    {
        $this->model->type_id = $typeId;
    }

    //reason_content
    public function getReasonContent(): string
    {
        return $this->model->reason_content;
    }

    public function setReasonContent(string $reasonContent): void
    {
        $this->model->reason_content = $reasonContent;
    }

    //start_time
    public function getStartTime(): int
    {
        return $this->model->start_time;
    }

    public function setStartTime(int $startTime): void
    {
        $this->model->start_time = $startTime;
    }

    //end_time
    public function getEndTime(): int
    {
        return $this->model->end_time;
    }

    public function setEndTime(int $endTime): void
    {
        $this->model->end_time = $endTime;
    }

    //is_del
    public function getIsDel(): int
    {
        return $this->model->is_del;
    }

    public function setIsDel(int $isDel): void
    {
        $this->model->is_del = $isDel;
    }

    public function getOpAdminId(): int
    {
        return $this->model->op_admin_id;
    }

    public function setOpAdminId(int $opAdminId): void
    {
        $this->model->op_admin_id = $opAdminId;
    }

    public function getOpTime(): string
    {
        return $this->model->op_time;
    }

    public function setOpTime(string $opTime): void
    {
        $this->model->op_time = $opTime;
    }
}
